package com.shenmazong.object;

/**
 * @program: server-java-demo
 * @description: ObjectApplication
 * @author: 亮子说编程
 * @create: 2020-10-15 16:49
 **/
public class ObjectApplication {

    public static void main(String[] args) {

        //--1
        Integer a = 100;
        Integer b = 100;

        System.out.println(a==b);
        System.out.println(a.equals(b));

        //--2
        Integer x = 500;
        Integer y = 500;

        System.out.println(x==y);
        System.out.println(x.equals(y));
    }
}
